How to recover space in a 4/32 device in order to install wireguard client?

您所在的位置:网站首页 openwrt wireguard How to recover space in a 4/32 device in order to install wireguard client?

How to recover space in a 4/32 device in order to install wireguard client?

2023-03-11 13:11| 来源: 网络整理| 查看: 265

Cyborg:

WR841N/ND v11 W

Hi @psherman... Here is my progress... Beforehand, sorry for the wall of text it comes. I give it a try to the Image Builder and here are my results:

Installing the necessary packages

I'm using an Ubuntu 20.04 VM in AWS, so following this guide I should install:

sudo apt install build-essential ccache ecj fastjar file g++ gawk \ gettext git java-propose-classpath libelf-dev libncurses5-dev \ libncursesw5-dev libssl-dev python python2.7-dev python3 unzip wget \ python3-distutils python3-setuptools python3-dev rsync subversion \ swig time xsltproc zlib1g-dev Downloading Image Builder

You can download an archive that contains the Image Builder, it is usually located in the same download page where you find the firmware image for your device. In my case should be the: https://downloads.openwrt.org/releases/18.06.9/targets/ar71xx/tiny/openwrt-imagebuilder-18.06.9-ar71xx-tiny.Linux-x86_64.tar.xz ? Am I right?

Profile

As there is no additional nor less packages for my device:

tl-wr841-v11: TP-LINK TL-WR841N/ND v11 Packages:

I think I do not need to specify the PROFILE and let it use the default

Packages

I have some doubts here as in the doc it says to complete remove IPv6 support I need to just pass the CONFIG_IPV6=n option, but then in the little table showing me the packages that I can safely remove it says I need remove IPv6| -ip6tables -odhcp6c -kmod-ipv6 -kmod-ip6tables. So... should I pass the option CONFIG_IPV6=n AND in the PACKAGES delete (using the dash "-") OR should I just use the option CONFIG_IPV6=n?

PACKAGES="-ppp -ppp-mod-pppoe -ip6tables -odhcp6c -kmod-ipv6 -kmod-ip6tables uhttpd uhttpd-mod-ubus libiwinfo-lua luci-base luci-app-firewall luci-mod-admin-full luci-theme-bootstrap" Luci minimal support

There is a think I didn't completely catch, as it's not explicitly said: when I compile using the Image Builder it doesn't come with Luci (web UI) support? I mean, in order to be able to use Luci minimal should I explicitly put the uhttpd uhttpd-mod-ubus libiwinfo-lua luci-base luci-app-firewall luci-mod-admin-full luci-theme-bootstrap packages in the PACKAGES?

First dry run

In order to train myself and wait for your answers to my questions I will try:

make image PACKAGES="-ppp -ppp-mod-pppoe -ip6tables -odhcp6c -kmod-ipv6 -kmod-ip6tables uhttpd uhttpd-mod-ubus libiwinfo-lua luci-base luci-app-firewall luci-mod-admin-full luci-theme-bootstrap"

Once I run the previous command and see the output of the make end I proceed to inspect the folder

du -h bin/targets/ar71xx/tiny/* | grep -i wr841-v11 3.8M bin/targets/ar71xx/tiny/openwrt-18.06.9-ar71xx-tiny-tl-wr841-v11-squashfs-factory-eu.bin 3.8M bin/targets/ar71xx/tiny/openwrt-18.06.9-ar71xx-tiny-tl-wr841-v11-squashfs-factory-us.bin 3.8M bin/targets/ar71xx/tiny/openwrt-18.06.9-ar71xx-tiny-tl-wr841-v11-squashfs-factory.bin 3.6M bin/targets/ar71xx/tiny/openwrt-18.06.9-ar71xx-tiny-tl-wr841-v11-squashfs-sysupgrade.bin

Which rise some questions:

Why if I deleted some packages I do not see less occupied space by the firmwares I just created if I compare them with the "vanilla (original)" (3.8M)? What version should I use the EU or the US? (I think I read somewhere that the EU version is limited to the output of the signal) Should I use the PROFILE? Test #2

Welp, the curiosity wins me, I did another test, but this time without specifying the Luci packages and with the CONFIG_IPV6=n:

make image CONFIG_IPV6=n PROFILE="tl-wr841-v11" PACKAGES="-ppp -ppp-mod-pppoe -ip6tables -odhcp6c -kmod-ipv6 -kmod-ip6tables"

Which gives me:

du -h bin/targets/ar71xx/tiny/* | grep -i wr841-v11 4.0K bin/targets/ar71xx/tiny/openwrt-18.06.9-ar71xx-tiny-device-tl-wr841-v11.manifest 3.8M bin/targets/ar71xx/tiny/openwrt-18.06.9-ar71xx-tiny-tl-wr841-v11-squashfs-factory-eu.bin 3.8M bin/targets/ar71xx/tiny/openwrt-18.06.9-ar71xx-tiny-tl-wr841-v11-squashfs-factory-us.bin 3.8M bin/targets/ar71xx/tiny/openwrt-18.06.9-ar71xx-tiny-tl-wr841-v11-squashfs-factory.bin 3.1M bin/targets/ar71xx/tiny/openwrt-18.06.9-ar71xx-tiny-tl-wr841-v11-squashfs-sysupgrade.bin

So I guess once installed the OS in the router I will see the real left space... But, without a Luci web, how should I proceed to configure my router? If I hook up an Ethernet cable to a client device the DHCP server will give my device an IP and I access the router via SSH using the .1 address?

Wireguard (?)

Question: As the main reason to do all of this is use Wireguard... What packages should I add in order to be able to use the Wireguard client with Luci support? luci-proto-wireguard?

Extra info

For what may server, my vanilla installation's packages:

root@OpenWrt:~# echo $(opkg list-installed | sed -e "s/\s.*$//") base-files busybox dnsmasq dropbear firewall fstools fwtool hostapd-common ip6tables iptables iw iwinfo jshn jsonfigpio-button-hotplug kmod-ip6tables kmod-ipt-conntrack kmod-ipt-core kmod-ipt-nat kmod-lib-crc-ccitt kmod-mac80211 knat kmod-nf-reject kmod-nf-reject6 kmod-ppp kmod-pppoe kmod-pppox kmod-slhc libblobmsg-json libc libgcc libip4tc liihttp liblucihttp-lua libnl-tiny libpthread libubox libubus libubus-lua libuci libuclient libxtables logd lua luci luci-mod-admin-full luci-proto-ipv6 luci-proto-ppp luci-theme-bootstrap mtd netifd odhcp6c odhcpd-ipv6only openwrtoot-envtools ubox ubus ubusd uci uclient-fetch uhttpd usign wireless-regdb wpad-mini

I have yet not installed anything on the router, I'm just making a little log/(self)explanation of my work here as I'm totally new to this



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3